<%@ page import="java.util.List" %>
<%@ page import="com.youmeek.ssh.domain.SysUser" %>
<%--
  Created by IntelliJ IDEA.
  User: Herrfe
  Date: 14-5-8
  Time: 上午9:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>youmeekssh测试首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <script type="text/javascript" src="frame/jquery-1.6.1.min.js"></script>
    <script type="text/javascript" src="template/youmeek/statics/js/index.js"></script>

    <style type="text/css">
    </style>

    <script type="text/javascript">
    </script>

</head>
<body>
请求结果：${msg}<br>

<table border="1">
    <tr>
        <th width="50%">用户ID</th>
        <th width="50%"> 用户名</th>
        <th width="50%"> 组织关系</th>
    </tr>
    <tr>
        <td width="50%">test</td>
        <td width="50%"> test</td>
    </tr>

    <%
        List<SysUser> sysUsers = (List<SysUser>) request.getAttribute("sysUsers");
        for (SysUser sysUser : sysUsers) {
    %>
    <tr>
        <td width="50%"><%=sysUser.getUserId()%></td>
        <td width="50%"><%=sysUser.getUserName()%></td>
        <td width="50%"><%=sysUser.getGroup()==null ? "无组织无纪律":sysUser.getGroup().getGroupName()%></td>
    </tr>
    <%
        }
    %>

</table>


</body>
</html>
